how to install istio1.10 with manifest file on kubernetes1.20

  1. prepare istio.yaml

    apiVersion: install.istio.io/v1alpha1
    kind: IstioOperator
    
    metadata:
      namespace: istio-system
      name:      istio
    spec:
      profile: default
      meshConfig:
        accessLogFile: "/dev/stdout"
        accessLogEncoding: "JSON"
        accessLogFormat: |
          {
            "start_time": "%START_TIME%","method": "%REQ(:METHOD)%","path": "%REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%","response_code": "%RESPONSE_CODE%","x_forwarded_for": "%REQ(X-FORWARDED-FOR)%","user_agent": "%REQ(USER-AGENT)%","authority": "%REQ(:AUTHORITY)%"
          }
      components:
        ingressGateways:
          - name: istio-ingressgateway
            k8s:
              service:
                type: NodePort
                ports:
                - name: status-port
                  nodePort: 30001
                  port: 15021
                  protocol: TCP
                  targetPort: 15021
                - name: http2
                  nodePort: 30000
                  port: 80
                  protocol: TCP
                  targetPort: 8080
    
  2. install istio

    istioctl install -f istio.yaml
    

references: